package com.sczmgk.hotline.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.LinearLayout;

import com.sczmgk.hotline.R;
import com.sczmgk.hotline.base.CheckPermissionBaseActivity;
import com.sczmgk.hotline.utils.CommonUtils;

public class ChatProActivity extends CheckPermissionBaseActivity {


    private LinearLayout online;
    private LinearLayout android;
    @Override
    public void handleMessage(Message msg) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat_pro);
        setHeader();
        initView();
    }


    private void setHeader() {
        setTitle(R.string.fast_char_pro);
    }

    private void initView() {
        online = (LinearLayout) findViewById(R.id.ll_onlinecontainer);
        android = (LinearLayout) findViewById(R.id.ll_androidcontainer);

        online.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
              checkPhone(ChatProActivity.this.getResources().getString(R.string.hot_line));
            }
        });
        android.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                login(true);
            }
        });
    }

    @Override
    public void onSelectedPhonePermission(String phoneNumber) {
        CommonUtils.callPhone(this,phoneNumber);
    }

    @Override
    public void onSelectedStroage(int position) {

    }

    @Override
    public void onSelectCamera(int position) {

    }

    @Override
    public boolean getIsNeedLogin() {
        return false;
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent arg2) {
        super.onActivityResult(requestCode, resultCode, arg2);

    }
}
